<?php
// +----------------------------------------------------------------------
// | 有小象汇 自研正版源码 赋能开发者
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2023 http://www.uxphp.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 有小象汇并不是自由软件，未经许可不能去掉有小象汇相关版权
// +----------------------------------------------------------------------
// | Author:  有小象汇
// +----------------------------------------------------------------------

namespace app\adminapi\controller\v1\car;


use app\adminapi\controller\AuthController;
use app\services\car\CarOrderDetailServices;
use think\facade\App;

class CarOrderDetail extends AuthController
{
    public function __construct(App $app,CarOrderDetailServices $services)
    {
        parent::__construct($app);
        $this->services = $services;
    }

    /**
     * 列表
     * @return mixed
     */
    public function getList(){
        $where = $this->request->getMore([
            ['fee_type',''],
            ['order_no',''],
        ]);
        return app('json')->success($this->services->getList($where,true));
    }

    /**
     * 获取收费类型
     * @return string
     */
    public function carChargeType(){
        $carChargeType = sys_data('car_charge_type');
        return app('json')->success($carChargeType);
    }
}
